'use strict';

/**
 * card - service
 */

const { Service } = require('egg');

class CardService extends Service {
  get model() {
    return this.ctx.model.Card;
  }

  async findOne(obj) {
    return await this.model.findOne(obj);
  }

  async update(obj) {
    return await this.model.update(obj.cond, obj.update);
  }
}

module.exports = CardService;
